<template>
    <div style="background-color: seagreen;">
        <h3>爸爸问:{{ask}}</h3>
        <button @click="$emit('handle',{data:reply})">我要进行回答</button>
        <!-- handle是自定义事件，reply是要传递的数据 -->
    </div>
</template>

<script setup>
    import {ref} from "vue"
     defineProps(['ask'])   
     const reply ="爸爸，我正在认真学习前端"
</script>